<html><head>
<title>个人中心</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/user-center.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/page.css">
<include file="./Public/public/public.html" />
</head>
<body>
<include file="./Public/public/top.html" />

<div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
<include file="./Public/public/centerLeft.html" />                      


<div class="right" ms-controller="right" style="min-height: 882px;">
        <h3>我的抵押
            <div class="sub">
                <span class="field">抵押中的域名:<span class="red06">{$mortCount}</span>个</span>
                <span class="field">可用金额:<span class="red06">{$avail_money}</span>元</span>
                <span class="field">今日需还款金额:<span class="red06">{$daymort}</span>元</span>
            </div>
        </h3>

        <div class="cnt-tips">
            <p>抵押到期时，系统将从您的余额中扣除费用还款，请保证账户可用余额充足。如果余额不足将导致还款逾期，会产生额外的罚息（2%/30天*逾期天数*1.4倍），逾期30天未还款的域名，系统将会从您的账户里没收。</p>
        </div>
        
        <div class="pt10 pb10">
         
            <a class="button-s button-blue" href="{:U('Mydomain/mortgage')}">批量抵押</a>
        </div>  

        <div class="split-dot mt10 mb10">
            <form action="{:U('Mydomort/index')}" method="post" id="queryForm">
                <div class="filter">
                    <select name="category" id="category" class="selessearch"> 
                    <option value="">全部</option>
                    <volist name="domTypes" id="vo">
                        	<option value="{$vo.id}" <if condition="$category eq $vo.id">selected</if>>{$vo.name}</option>
                        </volist>
                        
                    </select> 
                </div>
                <div class="filter">
                    <select name="status" id="loan_status" class="selessearch"> 
                    <option value="">全部</option>
                    <option value=1 <if condition="$status eq 1">selected</if>>借款中</option>
                    <option value=2 <if condition="$status eq 2">selected</if>>已还款</option>
                    <option value=3 <if condition="$status eq 3">selected</if>>逾期</option>
                    <option value=4 <if condition="$status eq 4">selected</if>>逾期没收</option>
                   </select> 
                </div>
                <input type="hidden" name="ps" value="">
            </form>

            <div class="clr"></div>
        </div>

<style>
.ml40 {
    margin-left: 50px;
}       
</style>
        <div class="table-wrappper">
            <div class="table table-w300">
                <div class="th">
                    <div class="td w5"><span class="ml10">ID</span></div>
                    <div class="td w10"><span class="ml10">品种</span></div>
                    <div class="td w10"><span class="ml10">域名</span></div>
                    <div class="td w10"><span class="ml10">授信额度</span></div>
                    <div class="td w10"><span class="ml10">总金额</span></div>
                    <div class="td w5"><span class="ml10">利息</span></div>
                    <div class="td w5"><span class="ml10">罚息</span></div>
                    <div class="td w10"><span class="ml10">抵押天数</span></div>
                    <div class="td w10"><span class="ml10">抵押时间</span></div>
                    <div class="td w10"><span class="ml10">到期时间</span></div>
                    <div class="td w5"><span class="ml10">状态</span></div>
                    <div class="td w15">
                    </div>
                    <div class="clr"></div>
                </div>
<volist name="list" id="vo">
		<div class="tr domain">
                     <div class="td w5"><span class="ml10">{$vo.id}</span></div>
                     <div class="td w10"><span class="ml10">{$vo.name}</span></div>
                     <div class="td w5"><span class="ml5">{$vo.domain}</span></div>
                     <div class="td w10"><span class="ml40">{$vo.credit_limit}</span></div>
                     <div class="td w10"><span class="ml40">{$vo.total}</span></div>
                     <div class="td w5"><span class="ml40">{$vo.interest}</span></div>
                     <div class="td w5"><span class="ml40">{$vo.penalty}</span></div>
                     <div class="td w10"><span class="ml40">{$vo.expir_day}</span></div>
                     <div class="td w10"><span class="ml40">{$vo.create_date|substr=0,10}</span></div>
                     <div class="td w10"><span class="ml40">{$vo.expir_date|substr=0,10}</span></div>
                     <div class="td w5"><span class="ml40">
                     		<if condition="$vo.status eq 1">借款中</if>
                            <if condition="$vo.status eq 2">已还款</if>
                            <if condition="$vo.status eq 3">逾期</if>
                            <if condition="$vo.status eq 4">逾期没收</if>
                     </span></div>
                     
                     <div class="td w10"><span class="ml40">
                        <if condition="$vo.status eq 1 or $vo.status eq 3">
                        	 <a class="button-blue button-xs mt5 ml10" style="margin:-0px 0px -20px 20px" 
                    action="repaymentAuth" data-id="{$vo.id}" data-registrar="aiming">去还款</a>
                        </if>
                        <if condition="$vo.status eq 2">
                        	已还款
                        </if>
                        <if condition="$vo.status eq 4">
                        	逾期没收
                        </if>
                      </span></div>
                      
                     <div class="clr"></div>
                </div>
</volist>
<div class="tr">
						<div class="td ">
							<div class="pages"><span>共<font>{$count}</font>条记录,当前第{$page}页</span>
							 <if condition="$page eq 1">
							         上一页&nbsp;&nbsp;&nbsp;
							 <else />
							    <a href="{$app_path}/mydomort/index/page/{$page-1}.html">上一页</a>&nbsp;&nbsp;&nbsp;
							 </if>
							 
							  <if condition="$page eq $pageNum">
							         下一页&nbsp;&nbsp;&nbsp;
							 <else />
								<a href="{$app_path}/mydomort/index/page/{$page+1}.html">下一页</a></div>&nbsp;&nbsp;
							 </if>
							 
						</div>
						<div class="clr"></div>
					</div>
                <div class="th-tool-bar">
                  
                        <div class="td w85">
                            <span class="ml10">
                          
                            </span>
                        </div>
                        <div class="td w15">
                        </div>                        
                        <div class="clr"></div>
                </div>


            </div>
        </div>
        <div class="pt10 pb10">
            <div class="dataTables_paginate paging_full_numbers">
                <div>
                                    </div>
            </div>
        </div>
    </div>
    
    
    <div class="clr"></div>
        </div>
        <div class="clr"></div>
    </div>


<div popup="repayment" class="reveal-modal medium">
    <a class="close-reveal-modal" action="closeModal">×</a>
    <h3 id="popupTitle">输入支付密码</h3>
    <div>
    <form method="post" action="{:U('Mydomort/repayment')}">
        <input  id="repaymentid" type="hidden" name="id" value="">
	    <div class="form-row form-row-s mt20">
	        <div class="input-name w30">支付密码</div>
	        <div class="input-box w65">
		        <input id="smscode" name="authpwd" type="password" class="input-s" placeholder="支付密码">
	        </div>
	        <div class="clr"></div>
	    </div> 
    <div class="split-dot mb20 mt20 text-center"></div>
    <div class="form-row form-row-s">
        <a action="confirmf" class=" button button-blue w45 fl">确认</a>
        <a action="cancel" class=" button button-gray w45 fr">取消</a>
        <div class="clr"></div>
    </div>
    </form>
    </div>
</div>

<include file="./Public/public/footer.html" />
<script type="text/javascript">
  $(".selessearch").change(function(){
	  $("#queryForm").submit();
  });
  //点击修改支付密码
  $('[action="repaymentAuth"]').click(function(){
      $('[popup="repayment"]').reveal();
  	$("#repaymentid").val($(this).attr('data-id'));
  });    
  //点击确认
  $('[action="confirmf"]').click(function(){
      $(this).parents('form').Qsubmit();
  }); 
</script>
</body></html>